package com.cxyzy.demo

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.cxyzy.demo.tween_anims.*
import com.cxyzy.utils.ext.startActivity
import kotlinx.android.synthetic.main.activity_tween.*


class TweenActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_tween)
        initView()
    }

    private fun initView() {
        moveBtn.setOnClickListener { startActivity<MoveActivity>() }
        colorBtn.setOnClickListener { startActivity<Move2Activity>() }
        scaleDownBtn.setOnClickListener { startActivity<ScaleDownActivity>() }
        scaleUpBtn.setOnClickListener { startActivity<ScaleUpActivity>() }
        rotateBtn.setOnClickListener { startActivity<RotateActivity>() }
        windmillBtn.setOnClickListener { startActivity<WindmillActivity>() }
        fadeOutBtn.setOnClickListener { startActivity<FadeOutActivity>() }
        fadeOutFadeInBtn.setOnClickListener { startActivity<FadeOutFadeInActivity>() }
        moveAndScaleDownBtn.setOnClickListener { startActivity<ScaleDownAndMoveActivity>() }
    }
}
